{{Extend "db/redis/layout"}}
{{Block "main"}}
<div class="row">
    <div class="col-md-12">
        <div class="block-flat md-margin-bottom">
            {{$section := Form "section"}}
            {{range $key, $info := Stored.infos}}
            <a href="{{dbMgrURL "info"}}&section={{$info.Name}}" class="btn btn-{{if eq $section $info.Name}}primary{{else}}default{{end}}" id="info-{{$info.Name}}" data-pjax="#pcont" data-keepjs="true">
                <i class="fa fa-list"></i>
                {{$info.Name}}
            </a>
            {{end}}
        </div>
        <div class="block-flat">
          <div class="header">							
            <h3>{{$section}}</h3>
          </div>
          <div class="content">
              <div class="table-responsive">
				<table class="table no-border hover blue">
					<thead class="no-border">
						<tr>
                            <th style="width:30%;"><strong>Name</strong></th>
							<th><strong>Value</strong></th>
						</tr>
					</thead>
					<tbody class="no-border-x" id="info-items">
                        {{range $key, $info := Stored.infos}}
                        {{if eq $info.Name $section}}
                        {{range $k,$v := $info.Attrs}}
						<tr>
							<td>{{$v.Name}}</td>
							<td><div class="wrap">{{$v.Value}}</div></td>
						</tr>
                        {{end}}
                        {{end}}
                        {{end}}
					</tbody>
				</table>
			    </div>
          </div><!-- /.content -->
        </div><!-- /.block-flat -->
    </div>
</div>
{{/Block}}